package com.zbp.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.hibernate.annotations.Proxy;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Proxy(lazy = false)
@ApiModel(value = "登录信息")
public class LoginVO implements Serializable {

    @NotBlank(message = "登录用户不能为空")
    @ApiModelProperty(value = "登录用户")
    private String userName;

    @NotBlank(message = "登录密码不能为空")
    @ApiModelProperty(value = "登录密码")
    private String passWord;

    @ApiModelProperty(value = "token")
    private String token;
}
